<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>OOJS</title>
    <script src="./js/js04_oojs_04.js"></script>
    <link rel="stylesheet" href="./style/common.css">
</head>
<body>
    <h1>"多态"</h1>
    <p class="msg"></p>
    <script>
        document.addEventListener("DOMContentLoaded",function(){
            let msg=document.querySelector(".msg");
            
            msg.innerHTML+=move(new Dog());
            msg.innerHTML+="<br>";
            msg.innerHTML+=move(new Chicken());
        });
    </script>
</body>
</html>